.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Fira Code', 'Consolas', monospace;
  padding: 1.5rem;
  gap: 1rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.titleIcon {
  color: var(--primary);
}

.title h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--foreground-tertiary);
}

.statusDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--foreground-tertiary);
  transition: background 0.3s ease;
}

.status.connected .statusDot {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.status.connected {
  color: var(--success);
}

.controls {
  display: flex;
  gap: 12px;
}

.terminalCard {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--background-secondary);
  border: 1px solid var(--border);
}

.terminal {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--background-secondary);
  border-radius: 8px;
}

.content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.line {
  display: flex;
  margin-bottom: 4px;
  min-height: 20px;
  align-items: center;
}

.timestamp {
  color: var(--foreground-tertiary);
  font-size: 0.75rem;
  margin-right: 12px;
  min-width: 80px;
  font-family: monospace;
}

.text {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
}

.line.input .text {
  color: var(--primary);
  font-weight: 500;
}

.line.output .text {
  color: var(--foreground);
}

.line.error .text {
  color: var(--destructive);
}

.inputLine {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.prompt {
  color: var(--primary);
  margin-right: 8px;
  font-weight: bold;
}

.input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-family: inherit;
  font-size: inherit;
  outline: none;
  padding: 4px 0;
}

.input::placeholder {
  color: var(--foreground-tertiary);
}

.footer {
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tips {
  font-size: 0.875rem;
  color: var(--foreground-tertiary);
}

/* 滚动条样式 */
.terminal::-webkit-scrollbar {
  width: 8px;
}

.terminal::-webkit-scrollbar-track {
  background: var(--background);
}

.terminal::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.terminal::-webkit-scrollbar-thumb:hover {
  background: var(--foreground-tertiary);
}

